package com.daocao.hua.api.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xsooy-pc on 2017/5/24.
 */

public class KeyValueBean implements Parcelable {
    public String key;
    public String value;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.key);
        dest.writeString(this.value);
    }

    public KeyValueBean() {
    }

    protected KeyValueBean(Parcel in) {
        this.key = in.readString();
        this.value = in.readString();
    }

    public static final Parcelable.Creator<KeyValueBean> CREATOR = new Parcelable.Creator<KeyValueBean>() {
        @Override
        public KeyValueBean createFromParcel(Parcel source) {
            return new KeyValueBean(source);
        }

        @Override
        public KeyValueBean[] newArray(int size) {
            return new KeyValueBean[size];
        }
    };
}
